export function  getMessage( type:number) {
    console.log(type)
    if (type === 1) {
        return Promise.resolve([]);
    }
    return new Promise<Message[]>((resolve)=>{
        resolve([{
            id:1,
            title:"标题",      //标题
            category:0,     //分类      
            context:"文章内容",      //文章内容
            create_date:"", //添加时间
            formOrg:"",  //来源  
            coverImg:"",  //封面
            attachment_file :"",//附件
            updateTime:"", //更新时间
         }])
    })
       
}

//todo type 枚举  typescript 枚举